// 登录页面样式 - Web端优化版本

.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../image/1.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 0;
  }
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  
  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  }
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  
  &:hover {
    transform: scale(1.05);
  }
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 16px;
  color: #7f8c8d;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 400;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0 20px;
  height: 56px;
  transition: all 0.3s ease;
  
  &:hover {
    background: #e9ecef;
    border-color: #dee2e6;
  }
  
  &:focus-within {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
}

.area-code {
  font-size: 16px;
  color: #495057;
  margin-right: 12px;
  font-weight: 500;
}

.input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: #495057;
  font-weight: 400;
  
  &::placeholder {
    color: #adb5bd;
    font-weight: 400;
  }
}

.eye-icon {
  font-size: 20px;
  color: #adb5bd;
  cursor: pointer;
  transition: color 0.3s ease;
  
  &:hover {
    color: #667eea;
  }
}

.login-btn {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  line-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    
    &::before {
      left: 100%;
    }
  }
  
  &:active {
    transform: translateY(0);
  }
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 14px;
  
  a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    
    &:hover {
      color: #764ba2;
      text-decoration: underline;
    }
  }
}

.other-login-title {
  text-align: center;
  color: #adb5bd;
  font-size: 14px;
  margin: 30px 0 20px;
  position: relative;
  
  &::before,
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #dee2e6;
  }
  
  &::before {
    left: 0;
  }
  
  &::after {
    right: 0;
  }
}

.other-login {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.other-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  
  &:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
}

.register-link {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
  margin-top: 20px;
  
  .register {
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    
    &:hover {
      color: #764ba2;
      text-decoration: underline;
    }
  }
}

// 响应式设计 - 完整自适应方案

// 大屏PC (1440px+)
@media (min-width: 1440px) {
  .login-container {
    padding: 0 40px;
  }
  
  .login-box {
    max-width: 500px;
    padding: 50px;
    border-radius: 24px;
  }
  
  .login-title {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .login-subtitle {
    font-size: 18px;
    margin-bottom: 45px;
  }
  
  .input-group {
    height: 60px;
    padding: 0 24px;
    border-radius: 15px;
  }
  
  .input {
    font-size: 17px;
  }
  
  .login-btn {
    height: 60px;
    font-size: 19px;
    line-height: 60px;
    border-radius: 15px;
  }
}

// 标准PC (1024px - 1439px)
@media (min-width: 1024px) and (max-width: 1439px) {
  .login-container {
    padding: 0 30px;
  }
  
  .login-box {
    max-width: 450px;
    padding: 40px;
  }
  
  .login-title {
    font-size: 32px;
  }
  
  .login-subtitle {
    font-size: 16px;
  }
}

// 平板横屏 (768px - 1023px)
@media (min-width: 768px) and (max-width: 1023px) {
  .login-container {
    padding: 0 25px;
  }
  
  .login-box {
    max-width: 420px;
    padding: 35px 30px;
    border-radius: 18px;
  }
  
  .login-title {
    font-size: 30px;
    margin-bottom: 8px;
  }
  
  .login-subtitle {
    font-size: 15px;
    margin-bottom: 35px;
  }
  
  .input-group {
    height: 54px;
    padding: 0 18px;
    gap: 18px;
  }
  
  .input {
    font-size: 16px;
  }
  
  .login-btn {
    height: 54px;
    font-size: 17px;
    line-height: 54px;
  }
  
  .other-login-title {
    &::before,
    &::after {
      width: 50px;
    }
  }
}

// 平板竖屏 (481px - 767px)
@media (min-width: 481px) and (max-width: 767px) {
  .login-container {
    padding: 0 20px;
  }
  
  .login-box {
    padding: 30px 25px;
    max-width: 380px;
    border-radius: 16px;
  }
  
  .login-title {
    font-size: 28px;
    margin-bottom: 6px;
  }
  
  .login-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .input-group {
    height: 50px;
    padding: 0 16px;
    gap: 16px;
  }
  
  .input {
    font-size: 15px;
  }
  
  .login-btn {
    height: 50px;
    font-size: 16px;
    line-height: 50px;
  }
  
  .other-icon {
    width: 45px;
    height: 45px;
  }
}

// 手机端 (320px - 480px)
@media (max-width: 480px) {
  .login-container {
    padding: 0 20px;
    min-height: 100vh;
    
    &::before {
      background-attachment: scroll;
      background-size: cover;
      background-position: center top;
    }
  }
  
  .login-box {
    padding: 30px 25px;
    margin: 15px 0;
    max-width: 350px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }
  
  .logo-img {
    width: 70px;
    height: 70px;
  }
  
  .login-title {
    font-size: 24px;
    margin-bottom: 5px;
  }
  
  .login-subtitle {
    font-size: 13px;
    margin-bottom: 25px;
  }
  
  .login-form {
    gap: 16px;
  }
  
  .input-group {
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
  }
  
  .input {
    font-size: 14px;
  }
  
  .area-code {
    font-size: 14px;
    margin-right: 8px;
  }
  
  .eye-icon {
    font-size: 18px;
  }
  
  .login-btn {
    height: 48px;
    font-size: 15px;
    line-height: 48px;
    border-radius: 10px;
    margin-top: 8px;
  }
  
  .login-links {
    margin-top: 16px;
    font-size: 13px;
  }
  
  .other-login-title {
    margin: 25px 0 15px;
    font-size: 13px;
    
    &::before,
    &::after {
      width: 30px;
    }
  }
  
  .other-login {
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .other-icon {
    width: 42px;
    height: 42px;
  }
  
  .register-link {
    margin-top: 15px;
    font-size: 13px;
  }
}

// 超小屏手机 (最大320px)
@media (max-width: 320px) {
  .login-container {
    padding: 0 15px;
    
    &::before {
      background-attachment: scroll;
      background-size: cover;
      background-position: center top;
    }
  }
  
  .login-box {
    padding: 25px 20px;
    border-radius: 14px;
    max-width: 290px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }
  
  .logo-img {
    width: 60px;
    height: 60px;
  }
  
  .login-title {
    font-size: 22px;
  }
  
  .login-subtitle {
    font-size: 12px;
  }
  
  .input-group {
    height: 44px;
    padding: 0 12px;
  }
  
  .input {
    font-size: 13px;
  }
  
  .login-btn {
    height: 44px;
    font-size: 14px;
    line-height: 44px;
  }
  
  .other-icon {
    width: 38px;
    height: 38px;
  }
}

// H5特殊样式保持不变
.login-h5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('../../image/4.webp') no-repeat center center;
  background-size: cover;

  .login-logo {
    margin-top: 0;
    margin-bottom: 32px;

    .logo-img {
      width: 86px;
      height: 86px;
    }
  }

  .login-title {
    font-size: 32px;
    margin-bottom: 8px;
    text-align: center;
  }

  .login-subtitle {
    font-size: 18px;
    color: #888;
    margin-bottom: 32px;
    text-align: center;
  }

  .login-form {
    .input-group {
      margin-bottom: 24px;

      .input {
        font-size: 18px;
        padding: 14px 16px;
      }
    }

    .login-btn {
      font-size: 20px;
      padding: 14px 0;
      margin-top: 8px;
    }

    .login-links {
      margin-top: 12px;
      font-size: 15px;

      .link {
        margin-right: 24px;
      }
    }
  }

  .other-login-title {
    margin: 32px 0 12px 0;
    font-size: 16px;
    color: #aaa;
    text-align: center;
  }

  .other-login {
    justify-content: center;

    .other-icon {
      width: 44px;
      height: 44px;
      margin: 0 18px;
    }
  }

  .register-link {
    margin-top: 32px;
    text-align: center;
    font-size: 16px;

    .register {
      color: #1aad19;
      margin-left: 6px;
      cursor: pointer;
    }
  }
}

.eye {
  width: 20px;
  height: 20px;
  margin-left: -20px;
}